package com.toilet.easyvideofx.api.response;

import java.util.Objects;

/**
 * 登录响应
 */
public class LoginResponse {
    /**
     * 放置在请求体上的token头名称
     */
    private String tokenHead;
    /**
     * 登录成功后返回的token
     */
    private String token;

    public String getTokenHead() {
        return tokenHead;
    }

    public void setTokenHead(String tokenHead) {
        this.tokenHead = tokenHead;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LoginResponse that = (LoginResponse) o;
        return Objects.equals(tokenHead, that.tokenHead) && Objects.equals(token, that.token);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tokenHead, token);
    }

    @Override
    public String toString() {
        return "LoginResponse{" +
                "tokenHead='" + tokenHead + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
